<template>
  
    <div class="txt">
      <div class="txt_one">
        <div class="price">
          <div class="tp">
            ￥<span>{{ message.price }}</span>
          </div>
          <div class="vip">
            <span class="vip_price">{{ message.vip_price }}</span>
            <i></i>
          </div>
        </div>
        <div class="share">
          <img src="../../assets/icon/common/share_51.png" alt="" />
        </div>
      </div>
      <div class="store_name">
        {{ message.store_name }}
      </div>
      <div class="data">
        <div class="o_price">原价:{{ message.ot_price }}</div>
        <div class="count">库存:{{ message.stock }}</div>
        <div class="sales">销售量:{{ message.sales }}</div>
      </div>
    </div>

</template>

<script>
export default {
    props:{
        message:{
            type:Object
        }
    }
};
</script>

<style lang="scss" scoped>
.txt {
  background-color: #fff;
  .txt_one {
    height: 38px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    .price {
      display: flex;
      align-items: flex-end;
      .tp {
        color: #fc4141;
        font-size: 15px;
        font-weight: 700;
        span {
          font-size: 24px;
        }
      }
      .vip {
        span {
          padding: 0 5px 0 4px;
          font-size: 14px;
          color: #282828;
        }
        i {
          display: inline-block;
          width: 23px;
          height: 11px;
          background: url(../../assets/icon/common/goods_vip.png) no-repeat;
          background-size: 100% 100%;
        }
      }
    }
    .share {
      line-height: 38px;
      > img {
        width: 20px;
        height: 20px;
        vertical-align: middle;
      }
    }
  }
  .store_name {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    padding: 5px 15px 0;
  }
  .data {
    height: 38px;
    line-height: 38px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    color: #82848f;
    font-size: 12px;
  }
}
</style>

